<div class="pageContent">
	<form action="<?php echo url('userpackage/userinfoadd');?>" method="post" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="60">
				<input type="hidden" name="id" value="<?php echo $userinfo->id?>" />
				<p>
				<label>套餐：</label>
				<select name="packageid">
				<?php foreach ($package as $k=>$v):?>
				<option value="<?php echo $k?>" <?php echo $k == $userinfo->packageid?'selected':''?>><?php echo $v?></option>
				<?php endforeach;?>
				</select>
				</p>
				<p>
				<label>开始时间：</label>
				<input type="text" class=" textInput  valid" datefmt="yyyy-MM-dd HH:mm:ss"  name="begintime" value="<?php echo date('Y-m-d H:i:s',$userinfo->begintime)?>"/>
				</p>
				<p>
				<label>结束时间：</label>
				<input type="text" class=" textInput  valid" datefmt="yyyy-MM-dd HH:mm:ss"  name="endtime" value="<?php echo date('Y-m-d H:i:s',$userinfo->endtime)?>"/>
				
				</p>
				<p>
				<label>剩余分钟</label>
				<input type="text" class="required number"  name="minte" value="<?php echo $userinfo->minte?>"/>
				
				</p>
				<p>
				<label>说明：</label>修改套餐后,下个周期自动按新套餐扣费
				</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button class="close" type="button">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div> 
